package com.etoak.stock.poji;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    @ExcelProperty(value ={"用户基本信息","用户名"},index = 0)
    private String username;
    @ExcelProperty(value ={"用户基本信息","年龄"},index = 2)
    private Integer age;
    @ExcelProperty(value ={"用户基本信息","家庭地址"},index = 1)
    private String address;
    @ExcelProperty(value ={"用户基本信息","生日"},index = 3)
    @DateTimeFormat("yyyy/MM/dd HH:mm")
    private Date birthday;
}
